Home } Calculators } Straight Distance



Enter a coordinate pair for each the starting and ending points according to the Cartesian coodinate system. The script will calculate the straight line distance between the two points.
Distance Calculator: From point A to point B
Point A Point B
(xA, yA) (xB, yB)

JavaScript Source Code 2002: Calculators: Straight Distance

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!